emacs.git
9 years agoConsolidate prefix names and key-based replacements
Justin Burkett [Wed, 5 Oct 2016 18:24:11 +0000 (14:24 -0400)]
Consolidate prefix names and key-based replacements

Make obsolete several redundant functions, the most important of which
is which-key-declare-prefixes. This is just an alias for
which-key-add-key-based-replacements now. The additional functionality
that declare-prefixes had (for declaring prefix titles) is now rolled
into the add-key-based-replacements function. See that functions doc
string.

9 years agoFix -maybe-get-prefix-title use of key-binding
Justin Burkett [Tue, 4 Oct 2016 20:48:40 +0000 (16:48 -0400)]
Fix -maybe-get-prefix-title use of key-binding

key-binding doesn't work with all forms of key strings.

See #143

9 years agoResize popup when frame resized
justbur [Sun, 11 Sep 2016 19:58:53 +0000 (15:58 -0400)]
Resize popup when frame resized

Fixes #139

9 years agoMerge pull request #137 from tarsius/outlines
Justin Burkett [Wed, 31 Aug 2016 23:55:26 +0000 (19:55 -0400)]
Merge pull request #137 from tarsius/outlines

Follow conventions for section headers

9 years agoMerge pull request #136 from tarsius/fixup
Justin Burkett [Wed, 31 Aug 2016 23:55:03 +0000 (19:55 -0400)]
Merge pull request #136 from tarsius/fixup

Move definition of which-key--local-binding-p

9 years agoFollow conventions for section headers
Jonas Bernoulli [Wed, 31 Aug 2016 23:26:10 +0000 (01:26 +0200)]
Follow conventions for section headers

Doing so allows the use of `outline-minor-mode' makes it possible
to navigate sections similarly to how that is done in `org-mode'.

9 years agoMove definition of which-key--local-binding-p
Jonas Bernoulli [Wed, 31 Aug 2016 12:41:41 +0000 (14:41 +0200)]
Move definition of which-key--local-binding-p

It has to be defined after the inline functions which it uses.

9 years agoVersion 1.1.15
Justin Burkett [Wed, 17 Aug 2016 15:17:45 +0000 (11:17 -0400)]
Version 1.1.15

9 years agoAdd note about setting delay to zero
Justin Burkett [Wed, 17 Aug 2016 15:17:16 +0000 (11:17 -0400)]
Add note about setting delay to zero

9 years agoFix minibuffer echo not displaying
Justin Burkett [Wed, 17 Aug 2016 15:11:56 +0000 (11:11 -0400)]
Fix minibuffer echo not displaying

See #133

9 years agoVersion 1.1.14
justbur [Thu, 28 Jul 2016 13:20:20 +0000 (09:20 -0400)]
Version 1.1.14

Tagged wrong commit

9 years agoDisable hack for echo area
justbur [Thu, 28 Jul 2016 13:17:19 +0000 (09:17 -0400)]
Disable hack for echo area

Seems to cause more problems (like completion commands sometimes being
overwritten) than it solves.

9 years agoFix Makefile
justbur [Wed, 27 Jul 2016 13:22:38 +0000 (09:22 -0400)]
Fix Makefile

9 years agoAdd allow-imprecise-window-fit option
justbur [Sat, 9 Jul 2016 19:25:50 +0000 (15:25 -0400)]
Add allow-imprecise-window-fit option

Possible fix for #130

When enabled this option avoids the use of fit-window-to-buffer to
resize the popup. My profiling suggested that emacs was spending a lot
of time in this function (and hanging sometimes) with different fonts. I
noticed this with Roboto Mono on MSWindows, which should explain #130.

9 years agoExplicitly set tab-width when collecting bindings
justbur [Wed, 6 Jul 2016 19:16:40 +0000 (15:16 -0400)]
Explicitly set tab-width when collecting bindings

For some reason indent-tabs-mode doesn't use tabs with strange
tab-widths.

See https://github.com/syl20bnr/spacemacs/issues/6497

9 years agoFix previous commit
justbur [Tue, 5 Jul 2016 13:05:47 +0000 (09:05 -0400)]
Fix previous commit

9 years agoAdd whitelist and blacklist options
justbur [Tue, 5 Jul 2016 12:58:40 +0000 (08:58 -0400)]
Add whitelist and blacklist options

which-key-allow-regexps is a list of regexps that allow the popup when
one is matched

which-key-inhibit-regexps inhibits the popup when one regexp matches

The string matched against is the current key sequence as produced by
key-description.

Fixes #129

9 years agoRemove setup code
justbur [Fri, 17 Jun 2016 12:42:18 +0000 (08:42 -0400)]
Remove setup code

It's no longer necessary and makes changing echo-keystrokes annoying.

9 years agoMake current-prefix nil when not showing popup
justbur [Thu, 16 Jun 2016 15:01:53 +0000 (11:01 -0400)]
Make current-prefix nil when not showing popup

9 years agoUse sit-for instead of timer for delay functions
justbur [Thu, 16 Jun 2016 14:03:51 +0000 (10:03 -0400)]
Use sit-for instead of timer for delay functions

9 years agoFix arg to which-key-delay-functions
justbur [Wed, 15 Jun 2016 01:45:10 +0000 (21:45 -0400)]
Fix arg to which-key-delay-functions

9 years agoRedesign delayed keys implementation
justbur [Wed, 15 Jun 2016 01:42:34 +0000 (21:42 -0400)]
Redesign delayed keys implementation

Everything is controlled through which-key-delay-functions now.

Ref #128

9 years agoFix bug in previous commit
justbur [Fri, 10 Jun 2016 02:39:47 +0000 (22:39 -0400)]
Fix bug in previous commit

9 years agoIntroduce delayed prefixes
justbur [Fri, 10 Jun 2016 02:37:11 +0000 (22:37 -0400)]
Introduce delayed prefixes

One version of idea in #128. This design is subject to change.

9 years agoBump version
justbur [Fri, 27 May 2016 13:35:27 +0000 (09:35 -0400)]
Bump version

9 years agoFix performance issue with secondary timer
justbur [Fri, 27 May 2016 13:31:35 +0000 (09:31 -0400)]
Fix performance issue with secondary timer

The secondary timer option was restarting the timer every time through
the update function, which caused the cpu to max out. Adds a flag so
that the timer is only restarted when necessary.

Fixes #126

9 years agoBump version
justbur [Thu, 26 May 2016 15:19:02 +0000 (11:19 -0400)]
Bump version

9 years agoFix --echo when echo-keystrokes nil
justbur [Thu, 26 May 2016 15:16:43 +0000 (11:16 -0400)]
Fix --echo when echo-keystrokes nil

9 years agoRemove some unused code in comments
justbur [Wed, 25 May 2016 01:37:52 +0000 (21:37 -0400)]
Remove some unused code in comments

9 years agoChange name of arg in define-key-recursively
justbur [Tue, 24 May 2016 16:44:50 +0000 (12:44 -0400)]
Change name of arg in define-key-recursively

Also clarify docstring

9 years agoNew screenshots
justbur [Tue, 17 May 2016 01:25:05 +0000 (21:25 -0400)]
New screenshots

9 years agoMore cleanup of README
justbur [Tue, 17 May 2016 01:18:59 +0000 (21:18 -0400)]
More cleanup of README

9 years agoREADME typo
justbur [Tue, 17 May 2016 01:15:28 +0000 (21:15 -0400)]
README typo

9 years agoFix comment about special keys in README
justbur [Tue, 17 May 2016 01:08:18 +0000 (21:08 -0400)]
Fix comment about special keys in README

9 years agoUpdate docs for new sort function
justbur [Tue, 17 May 2016 01:06:23 +0000 (21:06 -0400)]
Update docs for new sort function

9 years agoAdd which-key-local-then-key-order
justbur [Mon, 16 May 2016 19:35:33 +0000 (15:35 -0400)]
Add which-key-local-then-key-order

To use (setq which-key-sort-order 'which-key-local-then-key-order)

See #125

9 years agoBump version
justbur [Fri, 13 May 2016 13:05:03 +0000 (09:05 -0400)]
Bump version

9 years agoAccount for echo-keystrokes = which-key-idle-delay
justbur [Thu, 12 May 2016 12:39:38 +0000 (08:39 -0400)]
Account for echo-keystrokes = which-key-idle-delay

Ref #123

9 years agoBump version
justbur [Sat, 7 May 2016 12:07:55 +0000 (08:07 -0400)]
Bump version

9 years agoMerge pull request #122 from redguardtoo/master
Justin Burkett [Sat, 7 May 2016 12:03:05 +0000 (08:03 -0400)]
Merge pull request #122 from redguardtoo/master

tooltip-mode does in exist in emacs-nox #120

9 years agotooltip-mode does in exist in emacs-nox #120
Chen Bin [Sat, 7 May 2016 04:19:23 +0000 (14:19 +1000)]
tooltip-mode does in exist in emacs-nox #120

9 years agoBump version
justbur [Thu, 5 May 2016 14:31:45 +0000 (10:31 -0400)]
Bump version

9 years agoBackport two frame width functions for 24.3 support
justbur [Thu, 5 May 2016 14:30:44 +0000 (10:30 -0400)]
Backport two frame width functions for 24.3 support

Fixes #119

9 years agoMerge pull request #116 from cute-jumper/master
Justin Burkett [Wed, 27 Apr 2016 19:04:01 +0000 (15:04 -0400)]
Merge pull request #116 from cute-jumper/master

Fix god mode advice

9 years agoFix god mode advice
Junpeng Qiu [Wed, 27 Apr 2016 18:45:41 +0000 (14:45 -0400)]
Fix god mode advice

See https://github.com/justbur/emacs-which-key/pull/115

9 years agoMerge branch 'god-mode'
justbur [Tue, 26 Apr 2016 18:27:58 +0000 (14:27 -0400)]
Merge branch 'god-mode'

9 years agoAdd advice for god-mode support to hide popup
justbur [Tue, 26 Apr 2016 18:26:25 +0000 (14:26 -0400)]
Add advice for god-mode support to hide popup

The standard way to hide the popup before the command is not working.

9 years agoFix minor issues with god-mode support
justbur [Tue, 26 Apr 2016 18:16:08 +0000 (14:16 -0400)]
Fix minor issues with god-mode support

Make sure advice is activated for god-mode-lookup-command

Check for null which-key--god-mode-key-string

9 years agoBetter default for which-key-echo-keystrokes
justbur [Tue, 26 Apr 2016 15:08:32 +0000 (11:08 -0400)]
Better default for which-key-echo-keystrokes

Fixes #114

9 years agoAdd third-party section to which-key.el
justbur [Tue, 26 Apr 2016 13:18:48 +0000 (09:18 -0400)]
Add third-party section to which-key.el

9 years agoAdd third-party support section to readme
justbur [Tue, 26 Apr 2016 13:18:20 +0000 (09:18 -0400)]
Add third-party support section to readme

9 years agoAdd support for god-mode
justbur [Tue, 26 Apr 2016 13:07:12 +0000 (09:07 -0400)]
Add support for god-mode

Needs to be explicitly activated by calling
(which-key-enable-god-mode-support)

9 years agoBump version
justbur [Tue, 19 Apr 2016 12:15:23 +0000 (08:15 -0400)]
Bump version

9 years agoUse new history var for keymap selection
justbur [Tue, 19 Apr 2016 12:14:34 +0000 (08:14 -0400)]
Use new history var for keymap selection

9 years agoBump version
justbur [Sun, 17 Apr 2016 20:58:15 +0000 (16:58 -0400)]
Bump version

9 years agoExplicitly initialize variable-name-history
justbur [Sun, 17 Apr 2016 20:57:26 +0000 (16:57 -0400)]
Explicitly initialize variable-name-history

See #110

9 years agoBump version
justbur [Sun, 17 Apr 2016 20:37:26 +0000 (16:37 -0400)]
Bump version

9 years agoDeclare variable-name-history
justbur [Sun, 17 Apr 2016 20:34:45 +0000 (16:34 -0400)]
Declare variable-name-history

Fixes #110

9 years agoBump version
justbur [Sun, 10 Apr 2016 19:07:15 +0000 (15:07 -0400)]
Bump version

9 years agoSupport key ranges below top level
justbur [Sun, 10 Apr 2016 19:05:02 +0000 (15:05 -0400)]
Support key ranges below top level

10 years agoAdd badge
justbur [Wed, 6 Apr 2016 17:53:58 +0000 (13:53 -0400)]
Add badge

10 years agoTrigger travis
justbur [Tue, 5 Apr 2016 14:12:04 +0000 (10:12 -0400)]
Trigger travis

10 years agoSet up travis
justbur [Tue, 5 Apr 2016 14:09:59 +0000 (10:09 -0400)]
Set up travis

10 years agoBump version
justbur [Tue, 5 Apr 2016 14:06:45 +0000 (10:06 -0400)]
Bump version

10 years agoFix problem where prefix-title-alist was not updated
justbur [Tue, 5 Apr 2016 14:05:38 +0000 (10:05 -0400)]
Fix problem where prefix-title-alist was not updated

10 years agoFix docstring typo
justbur [Tue, 5 Apr 2016 14:05:15 +0000 (10:05 -0400)]
Fix docstring typo

10 years agoAdd tests
justbur [Tue, 5 Apr 2016 14:04:54 +0000 (10:04 -0400)]
Add tests

10 years agoBump version
justbur [Tue, 5 Apr 2016 13:39:20 +0000 (09:39 -0400)]
Bump version

10 years agoFix bug in declare-prefixes-for-mode
justbur [Tue, 5 Apr 2016 13:36:43 +0000 (09:36 -0400)]
Fix bug in declare-prefixes-for-mode

Fixes #109

10 years agoFix key-chord problem
justbur [Thu, 31 Mar 2016 20:13:06 +0000 (16:13 -0400)]
Fix key-chord problem

See the note in which-key--update

10 years agoSupport key-chord
justbur [Thu, 31 Mar 2016 14:51:32 +0000 (10:51 -0400)]
Support key-chord

Fixes #108

10 years agoVersion 1.0
justbur [Tue, 22 Mar 2016 02:05:26 +0000 (22:05 -0400)]
Version 1.0

10 years agoCleanup for 1.0 release
justbur [Tue, 22 Mar 2016 02:04:53 +0000 (22:04 -0400)]
Cleanup for 1.0 release

10 years agoMake show-standard-help narrow to prefix
justbur [Thu, 17 Mar 2016 17:04:33 +0000 (13:04 -0400)]
Make show-standard-help narrow to prefix

This is what describe-prefix-bindings does and it should be consistent.

10 years agoShorten lighter name
justbur [Mon, 14 Mar 2016 11:25:54 +0000 (07:25 -0400)]
Shorten lighter name

10 years agomade minor mode lighter customizable
Will S. Medrano [Mon, 14 Mar 2016 01:07:58 +0000 (18:07 -0700)]
made minor mode lighter customizable

10 years agoDisable special-keys option by default
justbur [Fri, 11 Mar 2016 00:51:58 +0000 (19:51 -0500)]
Disable special-keys option by default

It's probably too surprising to have enabled by default.

10 years agoFix compiler warnings
justbur [Thu, 10 Mar 2016 14:03:35 +0000 (09:03 -0500)]
Fix compiler warnings

Fixes #106

10 years agoIncrement version
justbur [Thu, 3 Mar 2016 21:43:31 +0000 (16:43 -0500)]
Increment version

10 years agoFix bug when show-prefix is left and there is one line
justbur [Thu, 3 Mar 2016 21:41:31 +0000 (16:41 -0500)]
Fix bug when show-prefix is left and there is one line

Fixes #104

10 years agoExport reload-key-sequence function
justbur [Mon, 29 Feb 2016 13:07:55 +0000 (08:07 -0500)]
Export reload-key-sequence function

Fixes #103

10 years agoMerge pull request #102 from zonuexe/master
Justin Burkett [Sat, 13 Feb 2016 14:54:50 +0000 (09:54 -0500)]
Merge pull request #102 from zonuexe/master

Disable show-trailing-whitespace

10 years agoDisable show-trailing-whitespace
USAMI Kenta [Sat, 13 Feb 2016 14:21:05 +0000 (23:21 +0900)]
Disable show-trailing-whitespace

10 years agoAdd missing case for which-key-show-prefix
justbur [Tue, 9 Feb 2016 16:32:20 +0000 (11:32 -0500)]
Add missing case for which-key-show-prefix

nil is a valid value for this option.

10 years agoAdd which-key-is-verbose
justbur [Sun, 7 Feb 2016 01:16:07 +0000 (20:16 -0500)]
Add which-key-is-verbose

Allows one to silence messages which may not indicate an error.

10 years agoRefactor create-pages and show-page
justbur [Wed, 3 Feb 2016 20:14:26 +0000 (15:14 -0500)]
Refactor create-pages and show-page

10 years agoImprove some function names
justbur [Wed, 3 Feb 2016 20:13:24 +0000 (15:13 -0500)]
Improve some function names

10 years agoDon't pass window-width around
justbur [Wed, 3 Feb 2016 17:40:35 +0000 (12:40 -0500)]
Don't pass window-width around

10 years agoFix problems with operator keymap function
justbur [Wed, 3 Feb 2016 13:27:40 +0000 (08:27 -0500)]
Fix problems with operator keymap function

1. Introduce using-show-keymap and using-show-operator-keymap vars to
make it clear how we are entering which-key

2. Add inhibit-next-operator-keymap for keys in the operator maps that
are bound to commands that read the next key "manually"

3. Fix problem where the next page hint was only being shown sometimes
in the operator maps. Need to distinguish between show-operator-keymap
and the possibility that an operator is active but the usual which-key
popup is showing.

10 years agoSimplify page turning function
justbur [Wed, 3 Feb 2016 13:24:54 +0000 (08:24 -0500)]
Simplify page turning function

10 years agoUse keyboard-quit in abort key sequence
justbur [Wed, 3 Feb 2016 13:23:55 +0000 (08:23 -0500)]
Use keyboard-quit in abort key sequence

Need to do this for the operator keymap function. Otherwise the operator
state doesn't exit properly

10 years agoComment out window var and add new func
justbur [Wed, 3 Feb 2016 13:22:53 +0000 (08:22 -0500)]
Comment out window var and add new func

The window var is not being used.

10 years agoDon't listify key sequence repeatedly
justbur [Sat, 30 Jan 2016 02:08:12 +0000 (21:08 -0500)]
Don't listify key sequence repeatedly

This function is not idempotent it turns out.

10 years agoInterpret ESC in operator popup
justbur [Sat, 30 Jan 2016 01:41:15 +0000 (20:41 -0500)]
Interpret ESC in operator popup

See #99

10 years agoImprove previous commit
justbur [Thu, 28 Jan 2016 20:39:47 +0000 (15:39 -0500)]
Improve previous commit

Filter out keys with :suppress-keymap property, which seem to be the
primary ones ignored in operator state

10 years agoMerge branch 'master' of https://github.com/justbur/emacs-which-key
justbur [Thu, 28 Jan 2016 20:04:05 +0000 (15:04 -0500)]
Merge branch 'master' of https://github.com/justbur/emacs-which-key

10 years agoInitial try at addressing #99
justbur [Thu, 28 Jan 2016 20:03:27 +0000 (15:03 -0500)]
Initial try at addressing #99

10 years agoMerge pull request #100 from yatesco/patch-1
Justin Burkett [Tue, 26 Jan 2016 12:55:58 +0000 (07:55 -0500)]
Merge pull request #100 from yatesco/patch-1

Trivial fix correcting SpacEmacs

10 years agoTrivial fix correcting SpacEmacs
Colin Yates [Tue, 26 Jan 2016 12:47:58 +0000 (12:47 +0000)]
Trivial fix correcting SpacEmacs

10 years agoAdd which-key-idle-secondary-delay
justbur [Mon, 18 Jan 2016 01:55:04 +0000 (20:55 -0500)]
Add which-key-idle-secondary-delay

Allows the delay time to be different for popups that follow an initial
popup within the same key sequence.